package cn.yeziji.forum;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 论坛主启动类
 *
 * @author gzkemays
 */
@SpringBootApplication
@EnableDubbo
@ComponentScan(
    basePackages = {
      "cn.yeziji.forum.dubbo",
      "cn.yeziji.forum.common",
      "cn.yeziji.forum.config",
      "cn.yeziji.forum.filter",
      "cn.yeziji.forum.controller",
      "cn.yeziji.forum.dao",
      "cn.yeziji.forum.service",
      "cn.yeziji.forum.converter",
      "cn.yeziji.forum.basic",
      "cn.yeziji.forum.entity",
      "cn.yeziji.forum.utils",
      "cn.yeziji.forum.exception",
      "cn.yeziji.forum.listener",
      "cn.yeziji.forum.filter"
    })
@MapperScan({"cn.yeziji.forum.mapper"})
@EnableAsync
public class YzjForumApplication {

  public static void main(String[] args) {
    SpringApplication.run(YzjForumApplication.class, args);
  }

}
